package org.adorsys.aderp.aderplogin.xchange;

import org.adorsys.aderp.jpa.api.xchange.DataView;

public class OrgaPersonDataView {

	public static final String PERSONNUMBER_MAP_KEY = "personNumber";

	public static final String FIRSTNAME_MAP_KEY = "firstName";
	public static final String LASTNAME_MAP_KEY = "lastName";
	public static final String EMAIL_MAP_KEY = "email";
	public static final String GENDERKEY_MAP_KEY = "genderKey";
	public static final String DOB_MAP_KEY = "dob";
	public static DataView getOrgaPersonDataView() {
		DataView dataView = new DataView();
		dataView.getFieldExpressions().put(PERSONNUMBER_MAP_KEY, "getPersonNumber()");
		dataView.getFieldExpressions().put(FIRSTNAME_MAP_KEY, "getFirstName()");
		dataView.getFieldExpressions().put(LASTNAME_MAP_KEY, "getLastName()");
		dataView.getFieldExpressions().put(EMAIL_MAP_KEY, "getEmailContact()");
		dataView.getFieldExpressions().put(GENDERKEY_MAP_KEY, "getGender().getGenderCode()");
		dataView.getFieldExpressions().put(DOB_MAP_KEY, "getBirthDateString()");
		return dataView;
	}
}
